/*
 * @Author:
 * @Date: 2022-08-26 13:59:02
 * @LastEditors:
 * @LastEditTime: 2022-08-26 15:35:14
 * @FilePath: \imechos-admin\src\api\sys\activeMessage.js
 * @Description:
 *
 * Copyright (c) 2022 by  , All Rights Reserved.
 */

import request from '@/utils/request';

// 活动消息列表
export function listData(query) {
  return request({
    url: `/activity-message`,
    method: 'get',
    params: query
  })
}
// 新增活动消息
export function postAddData(form) {
  return request({
    url: '/activity-message',
    method: 'post',
    data: form
  });
}
// 修改活动消息
export function putEditData(id,form) {
  return request({
    url: `/activity-message/${id}`,
    method: 'put',
    data: form
  });
}
// 发送消息
export function postSendData(id) {
  return request({
    url: `/activity-message/send/${id}`,
    method: 'post',
  });
}


